#ifndef LOGIN_H
#define LOGIN_H

#include <QWidget>
#include <QMouseEvent>
#include <QListWidget>

#include "user.h"
#include "admindialog.h"
#include "keyboard.h"
#include "admin.h"

namespace Ui {
class Login;
}

class Login : public QWidget
{
    Q_OBJECT

public:
    explicit Login(int user, QWidget *parent = nullptr);
    ~Login();

    KeyBoard *key;
    int user = 0;
    bool nameFocuse = true;
    bool eventFilter(QObject *watched, QEvent *event)override;
    void mouseReleaseEvent(QMouseEvent *)override;
    void deleteBtn_click();
private slots:
    void on_login_pushButton_clicked();

    void on_regist_pushButton_clicked();

    void on_pushButton_clicked();
    void keyPress(QString key);

private:
    Ui::Login *ui;
};

#endif // LOGIN_H
